<footer class="footer">
    <div class="container-fluid">
        <div class="footer__inner">
            <a class="footer__logo" href="{{ .Site.Home.RelPermalink }}">
                {{- /**/ -}}
                <span class="navbar-brand__logo navbar-logo">
                    {{- if ne .Site.Params.ui.navbar_logo false -}}
                      {{ with resources.Get "icons/logo.svg" -}}
                        {{ ( . | minify).Content | safeHTML -}}
                      {{ end -}}
                    {{ end -}}
                </span>
                {{- /**/ -}}
                <span class="footer__logo-name">
                {{- .Site.Title -}}
                </span>
                {{- /**/ -}}
            </a>
            <ul class="footer__nav">
                {{ $p := . -}}
                {{ range .Site.Menus.main -}}
                <li class="footer__nav-item">
                    {{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) -}}
                    {{ $href := "" -}}
                    {{ with .Page -}}
                    {{ $active = or $active ( $.IsDescendant .) -}}
                    {{ $href = .RelPermalink -}}
                    {{ else -}}
                    {{ $href = .URL | relLangURL -}}
                    {{ end -}}
                    <a {{/**/ -}}
                    class="{{- if $active }} active {{- end }}" {{/**/ -}}
                    href="{{ $href }}"
                    >
                    {{- .Pre -}}
                    <span>{{ .Name }}</span>
                    {{- .Post -}}
                    </a>
                </li>
                {{ end -}}
            </ul>
            <div class="footer__socials">
                <a href="https://bsky.app/profile/cilium.io" target="_blank" rel="noreferrer">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 18" aria-hidden="true">
                        <path d="M4.33531 1.19659C6.62813 2.93465 9.09469 6.45824 10 8.34913V13.3435C10 13.2372 9.95938 13.3573 9.87187 13.6161C9.39937 15.0174 7.55375 20.4863 3.33344 16.1142C1.11125 13.8124 2.14 11.5105 6.185 10.8155C3.87094 11.213 1.26937 10.5561 0.555625 7.98058C0.35 7.23969 0 2.67616 0 2.0598C0 -1.02762 2.68094 -0.057182 4.33531 1.19659ZM15.6647 1.19659C13.3719 2.93465 10.9053 6.45824 10 8.34913V13.3435C10 13.2372 10.0406 13.3573 10.1281 13.6161C10.6006 15.0174 12.4462 20.4863 16.6666 16.1142C18.8888 13.8124 17.86 11.5105 13.815 10.8155C16.1291 11.213 18.7306 10.5561 19.4444 7.98058C19.65 7.23969 20 2.67616 20 2.0598C20 -1.02762 17.3194 -0.057182 15.6647 1.19659Z" fill="white"/>
                    </svg>
                    <span class="sr-only">Bluesky link</span>
                </a>
                <a href="https://slack.cilium.io" target="_blank" rel="noreferrer">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 21 20" aria-hidden="true">
                        <path fill="#fff"
                              d="M7.332 0a2 2 0 0 0 0 4h2V2a2 2 0 0 0-2-2m.002 5.332H2a2 2 0 1 0 0 4h5.334a2 2 0 0 0 0-4Zm12.666 2a2 2 0 1 0-4 0v2h2a2 2 0 0 0 2-2Zm-5.332.002V2a2 2 0 1 0-4 0v5.333a2 2 0 0 0 4 0m-2 12.667a2 2 0 0 0 0-4h-2v2a2 2 0 0 0 2 2Zm0-5.336h5.334a2 2 0 1 0 0-4h-5.334a2 2 0 0 0 0 4ZM0 12.664a2 2 0 0 0 4 0v-2H2a2 2 0 0 0-2 2m5.332 0v5.334a2 2 0 1 0 4 0v-5.334a2 2 0 1 0-4 0Z">
                        </path>
                    </svg>
                    <span class="sr-only">Slack link</span>
                </a>
                <a href="https://github.com/cilium/tetragon/" target="_blank" rel="noreferrer">
                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true">
                        <path fill="#fff" fill-rule="evenodd"
                              d="M11.964 0C5.348 0 0 5.5 0 12.304c0 5.44 3.427 10.043 8.18 11.673.595.122.813-.265.813-.59 0-.286-.02-1.264-.02-2.282-3.328.733-4.02-1.467-4.02-1.467-.536-1.426-1.328-1.793-1.328-1.793-1.09-.753.08-.753.08-.753 1.207.081 1.841 1.263 1.841 1.263 1.07 1.873 2.793 1.344 3.487 1.018.099-.795.416-1.345.752-1.65-2.654-.285-5.447-1.345-5.447-6.07 0-1.345.475-2.445 1.228-3.3-.119-.306-.535-1.57.12-3.26 0 0 1.01-.326 3.287 1.263.975-.27 1.981-.407 2.991-.408 1.01 0 2.04.143 2.991.408 2.278-1.59 3.288-1.263 3.288-1.263.654 1.69.238 2.954.12 3.26.772.855 1.227 1.955 1.227 3.3 0 4.725-2.792 5.764-5.467 6.07.436.387.812 1.12.812 2.282 0 1.65-.02 2.974-.02 3.381 0 .326.219.713.813.591 4.754-1.63 8.18-6.234 8.18-11.673C23.929 5.5 18.56 0 11.965 0Z"
                              clip-rule="evenodd"></path>
                    </svg>
                    <span class="sr-only">Github link</span>
                </a>
            </div>
        </div>
        <div class="footer__copyright">
            <p>&#169; 2024 The Tetragon Authors. All rights reserved</p>
            <p>The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our<!-- --> <a href="https://www.linuxfoundation.org/trademark-usage/" target="_blank" rel="noopener noreferrer">Trademark Usage</a> <!-- -->page. Linux is a registered trademark of Linus Torvalds.<!-- --> <a href="https://www.linuxfoundation.org/privacy/" target="_blank" rel="noopener noreferrer">Privacy Policy</a> <!-- -->and<!-- --> <a href="https://www.linuxfoundation.org/terms/" target="_blank" rel="noopener noreferrer">Terms of Use</a>.</p>
        </div>
    </div>
</footer>
